<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>燃情世界杯</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/index.css">
    <script src="js/jquery-1.11.3.min.js"></script>
    <script src="js/zepto.min.js"></script>
    <script src="js/script.js"></script>
    <script src="js/iscroll-zoom.js"></script>
    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="bg" style="background-image: url('images/index/zubg.jpg')">
    <div class="pic">
        <div>
            <div class="pic_cont">
                <img src="images/index/ren.jpg" alt="" class="up_img"/>
                <div class="upload-img"></div>
                <div class="upload-btn btn-old"><input type="file" name="" id=""></div>
                <div class="pic_inner">
                    <div class="pic_pos">
                        <img src="images/index/zhao.png" alt=""/>
                        <p> 上传照片 </p>
                    </div>
                </div>
            </div>
            <div class="que">
                <a href="javascript:;" > 确认 </a>
            </div>
        </div>
    </div>
</div>
</body>
<script src="js/index.js"></script>
<script language="JavaScript">
    function myrefresh(){
        window.location.reload();
    }
    $('.que a').click(function(){
        var ImgSrc=$('.upload-img img').attr('src');
        console.log(ImgSrc);
    })
   
    function dataURLtoFile(dataurl, filename) {
    var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1],
        bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
    while(n--){
        u8arr[n] = bstr.charCodeAt(n);
    }
    return new File([u8arr], filename, {type:mime});
 }
      
   
//    setTimeout('myrefresh()',1000); //指定1秒刷新一次
</script>

</html>
